# 953 简单：验证外星语词典

def isAlienSorted(words, order):
    return words == sorted(words, key=lambda word: [order.index(c) for c in word])
